import axios from "@/axios"

export function addTag(data) {
    return axios.post("/tags_service/tag", data)
}

export function updateTag(data) {
    return axios.put("/tags_service/tag", data)
}

export function getTagPageList(data) {
    return axios.post("/tags_service/tag/page", data)
}

export function deleteTag(tagId) {
    return axios.delete(`/tags_service/tag/${tagId}`)
}

export function selectTags(key) {
    return axios.post("/tags_service/tag/search", {key})
}

export function getTagSelect() {
    return axios.post("/tags_service/tag/list")
}


